<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbactivmedEditDlg" widgetVar="PyfntbactivmedEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPyfntbactivmedTitle}">

            <h:form id="PyfntbactivmedEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pyfntbactivmedController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPyfntbactivmedLabel_pyfntbactivmedid}" for="pyfntbactivmedid" />
                        <h:outputText id="pyfntbactivmedid" value="#{pyfntbactivmedController.selected.pyfntbactivmedid}" />

                        <p:outputLabel value="#{myBundle.EditPyfntbactivmedLabel_pyfntbpoaprogid}" for="pyfntbpoaprogid" />
                        <p:selectOneMenu id="pyfntbpoaprogid" value="#{pyfntbactivmedController.selected.pyfntbpoaprogid}" required="true" requiredMessage="#{myBundle.EditPyfntbactivmedRequiredMessage_pyfntbpoaprogid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbpoaprogController.items}"
                                           var="pyfntbpoaprogidItem"
                                           itemValue="#{pyfntbpoaprogidItem}"
                                           itemLabel="#{pyfntbpoaprogidItem.pyfntbpoaprogid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbpoaprogConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditPyfntbactivmedLabel_pyfntbmedverifid}" for="pyfntbmedverifid" />
                        <p:selectOneMenu id="pyfntbmedverifid" value="#{pyfntbactivmedController.selected.pyfntbmedverifid}" required="true" requiredMessage="#{myBundle.EditPyfntbactivmedRequiredMessage_pyfntbmedverifid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbmedverifController.items}"
                                           var="pyfntbmedverifidItem"
                                           itemValue="#{pyfntbmedverifidItem}"
                                           itemLabel="#{pyfntbmedverifidItem.pyfntbmedverifid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbmedverifConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbactivmedController.save}" value="#{myBundle.Save}" update="display,:PyfntbactivmedListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbactivmedEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbactivmedEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
